<?php
require_once("../../../oh.framework/oh.framework.php");	

oh_code_test(
"Model",
"-",
<<<PHP
	oh("model");
PHP
);

oh_code_test(
"Manage Class",
"-",
<<<PHP
	\$q0 = oh("model")->new_class("myclass0&get=query");
	oh_dump(\$q0,"myclass0");

	\$q1 = oh("model")->new_class("myclass1&define=title*!name,content&get=query");
	oh_dump(\$q1,"myclass1");	
	
	\$q2 = oh("model")->new_class("myclass2&get=query&define=",array(
		"title",
		"content"
	));
	oh_dump(\$q2,"myclass2");	
PHP
);

oh_code_test(
"Manage Class",
"-",
<<<PHP
	oh("model")->new_class("mypost",array(
		"title",
		"content"		
	));
	
	if ( oh("model")->hit_class("mypost") ) {
		echo "Class mypost exists!";
	} else {
		echo "Class mypost NOT exists!";	
	}	
	
	\$mypost = oh("model")->get_class("mypost");
	oh_dump(\$mypost);
PHP
);



?>
